import WelcomeStudentStart from "../views/welcome/welcomeStudentStart.vue";
import MessageRegister from "../views/welcome/messageRegister.vue";
import ManageWelcomeInfo from "../views/welcome/manageWelcomeInfo.vue";
import AdmissionInfos from "../views/welcome/manageInfos/admissionInfos.vue";
import AnnouncementInfo from "../views/welcome/manageInfos/announcementInfo.vue";
import Mystart from "../views/welcome/mystart.vue";
import OrdersInfo from "../views/welcome/manageInfos/ordersInfo.vue";
import InRoomInfo from "../views/welcome/manageInfos/inRoomInfo.vue";
import GoodsGet from "../views/welcome/reports/goodsGet.vue";
import StudentProgressInfo from "../views/welcome/manageInfos/studentProgressInfo.vue";
import MyProgress from "../views/welcome/myProgress.vue";
import ReportAll from "../views/welcome/reportAll.vue";
import FiledReport from "../views/welcome/reports/filedReport.vue";
import MessageCollect from "../views/welcome/reports/messageCollect.vue";
import RoomSelect from "../views/welcome/reports/roomSelect.vue";
import ToPay from "../views/welcome/reports/toPay.vue";
import EndWelcome from "../views/welcome/endWelcome.vue";
import SchoolRoom from "../views/welcome/maps/schoolRoom.vue";
import SchoolEat from "../views/welcome/maps/schoolEat.vue";

const welcomeRoutes = [
    {
        path: '/welcome',
        component: WelcomeStudentStart
    },
    {
        path: '/messageRegister',
        component: MessageRegister
    },
    {
        path: '/goodsGet',
        component: GoodsGet
    },
    {
        path: '/myProgress',
        component: MyProgress
    },
    {
        path: '/endW',
        component: EndWelcome,
        redirect: '/endW/schoolRoom',
        children: [
            {
                path: 'schoolRoom',
                component: SchoolRoom
            },
            {
                path: 'schoolEat',
                component: SchoolEat
            }
        ]
    },
    {
        path: '/reportAll',
        component: ReportAll,
        redirect: '/reportAll/filedReport',
        children: [
            {
                path: 'filedReport',
                component: FiledReport
            },
            {
                path: 'messageCollect',
                component: MessageCollect
            },
            {
                path: 'roomSelect',
                component: RoomSelect
            },
            {
                path: 'goodsGet',
                component: GoodsGet
            },
            {
                path: 'toPay',
                component: ToPay
            }
        ]
    },
    {
        path: '/manageWelcomeInfo',
        component: ManageWelcomeInfo,
        redirect: '/manageWelcomeInfo/start',
        children: [
            {
                path: 'admissionInfos',
                component: AdmissionInfos
            },
            {
                path: 'announcementInfos',
                component: AnnouncementInfo
            },
            {
                path: 'start',
                component: Mystart
            },
            {
                path: 'ordersInfo',
                component: OrdersInfo
            },
            {
                path: 'inRoomInfo',
                component: InRoomInfo
            },
            {
                path: 'studentProgressInfo',
                component: StudentProgressInfo
            }
        ]
    }
]

export default welcomeRoutes
